﻿@page "/vaccine"
@using BootstrapBlazorApp.Shared.Models
@attribute [TabItemOption(Text = "Vaccine")]
<PageTitle>疫苗信息</PageTitle>
<Button Text="添加疫苗" OnClickWithoutRender="@ShowDialog" />
<Divider></Divider>
<div class="table-users scroll">
    <Table TItem="VaccineModel" IsPagination="true" PageItemsSource="@PageItemsSource" RenderMode="TableRenderMode.Table"
           ShowToolbar="false" ShowExtendButtons="true" ShowSkeleton="true" IsExtendButtonsInRowHeader="false"
         IsStriped="true" IsBordered="true" UseInjectDataService="true" OnQueryAsync="OnQueryAsync"  OnSaveAsync="@OnSaveAsync" OnDeleteAsync="@OnDeleteAsync">
        <TableColumns>
            <TableColumn @bind-Field="@context.Company"  Width="220"  Items="Getcompanys(context)" />
            <TableColumn @bind-Field="@context.Name" Width="220" />
            <TableColumn @bind-Field="@context.Code" Width="80" />
            <TableColumn @bind-Field="@context.Specifications" />
        </TableColumns>
    </Table>
</div>




